<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>写文章</title>
    <!--此属性为文档兼容（compatible）模式声明，表明使用IE浏览器的最新渲染模式-->
    <meta http-equiv="x-ua-compatible" content="IE=edge">
    <!--根据设置确定视口宽度，device-width表示采用设备宽度，初始缩放1.0，
    使用user-scalable=no 可以禁用其缩放（zooming）功能,shrink-to-fit=no 自动适应手机屏幕的宽度。-->
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <!-- 新 Bootstrap4 核心 CSS 文件 -->
    {include file="../application/common/view/index/header_link.html" /}
    <!--HTML5 Shiv和Respond.js用于让低于IE9版本的浏览器支持HTML5元素和媒体查询 注意：如果通过file://引入Respond.js文件，则该文件无法起作用-->
    <link rel="stylesheet" href="/editormd/css/editormd.css" />
    <link rel="stylesheet" href="/static/css/editor.css"/>
</head>
<body>
<div class="container-fluid">
    <div class="header">
        <div class="head">
        </div>
    </div>
    <form class="main" action="/blog/article/insert" method="post">
        <input class="form-control" name="title" type="text" placeholder="请输入标题，您可以输入50字">
        <textarea class="form-control" name="synopsis" id="exampleFormControlTextarea1" rows="3" placeholder="请填写文章摘要，最多可以填写500字，如不填写会默认抓取正文前200字"></textarea>
        <div id="test-editor" class="form-control">
            <textarea style="display:none;" name="content"></textarea>
        </div>
        <select name="classify" class="form-control">
            <option value="1">原创</option>
            <option value="2">转载</option>
            <option value="3">翻译</option>
        </select>
        <div  class="foot form-control" >
            {volist name="$class_one" id="cl_one"}
            <button  onclick="class_one()"  type="button" class="btn classone" value="{$cl_one.id}">{$cl_one.category}</button>
            {/volist}
            <input  id="demo1" name="category" value="" type="hidden"><input id="demo2"  name="category_two" value="" type="hidden">
        </div>
        <div  id="class_one1" class="foot form-control" >

        </div>
        <div class="footer">
            <input class="button btn-primary" type="submit" value="存为草稿" name="submit1">
            <input class="button btn-primary" type="submit" value="发布文章" name="submit2">
        </div>
    </form>
</div>
</body>
{include file="../application/common/view/index/footer_link.html" /}
<script src="/static/js/editor.js"></script>
<script src="/editormd/editormd.min.js"></script>
<script type="text/javascript">
    $(function() {
        var editor = editormd("test-editor", {
            width  : "100%",
            height : "100%",
            path   : "/editormd/lib/"
        });
    });
</script>
</html>